#ifndef WORKERTHREAD_H
#define WORKERTHREAD_H

#include <QThread>
#include <QPushButton>

class WorkerThread : public QThread
{
    Q_OBJECT
public:
    WorkerThread();

    inline void setExitStop(bool exit)
    {this->exitStop = exit;}

protected:
    virtual void run() override;
    bool exitStop = false; ///< 线程退出标志

};

#endif // WORKERTHREAD_H
